package com.cx.pojo;

import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class RecommendExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RecommendExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andRecIdIsNull() {
            addCriterion("rec_id is null");
            return (Criteria) this;
        }

        public Criteria andRecIdIsNotNull() {
            addCriterion("rec_id is not null");
            return (Criteria) this;
        }

        public Criteria andRecIdEqualTo(Integer value) {
            addCriterion("rec_id =", value, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdNotEqualTo(Integer value) {
            addCriterion("rec_id <>", value, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdGreaterThan(Integer value) {
            addCriterion("rec_id >", value, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("rec_id >=", value, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdLessThan(Integer value) {
            addCriterion("rec_id <", value, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdLessThanOrEqualTo(Integer value) {
            addCriterion("rec_id <=", value, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdIn(List<Integer> values) {
            addCriterion("rec_id in", values, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdNotIn(List<Integer> values) {
            addCriterion("rec_id not in", values, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdBetween(Integer value1, Integer value2) {
            addCriterion("rec_id between", value1, value2, "recId");
            return (Criteria) this;
        }

        public Criteria andRecIdNotBetween(Integer value1, Integer value2) {
            addCriterion("rec_id not between", value1, value2, "recId");
            return (Criteria) this;
        }

        public Criteria andRecCityIsNull() {
            addCriterion("rec_city is null");
            return (Criteria) this;
        }

        public Criteria andRecCityIsNotNull() {
            addCriterion("rec_city is not null");
            return (Criteria) this;
        }

        public Criteria andRecCityEqualTo(String value) {
            addCriterion("rec_city =", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityNotEqualTo(String value) {
            addCriterion("rec_city <>", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityGreaterThan(String value) {
            addCriterion("rec_city >", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityGreaterThanOrEqualTo(String value) {
            addCriterion("rec_city >=", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityLessThan(String value) {
            addCriterion("rec_city <", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityLessThanOrEqualTo(String value) {
            addCriterion("rec_city <=", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityLike(String value) {
            addCriterion("rec_city like", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityNotLike(String value) {
            addCriterion("rec_city not like", value, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityIn(List<String> values) {
            addCriterion("rec_city in", values, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityNotIn(List<String> values) {
            addCriterion("rec_city not in", values, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityBetween(String value1, String value2) {
            addCriterion("rec_city between", value1, value2, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecCityNotBetween(String value1, String value2) {
            addCriterion("rec_city not between", value1, value2, "recCity");
            return (Criteria) this;
        }

        public Criteria andRecDistrictIsNull() {
            addCriterion("rec_district is null");
            return (Criteria) this;
        }

        public Criteria andRecDistrictIsNotNull() {
            addCriterion("rec_district is not null");
            return (Criteria) this;
        }

        public Criteria andRecDistrictEqualTo(String value) {
            addCriterion("rec_district =", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictNotEqualTo(String value) {
            addCriterion("rec_district <>", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictGreaterThan(String value) {
            addCriterion("rec_district >", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictGreaterThanOrEqualTo(String value) {
            addCriterion("rec_district >=", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictLessThan(String value) {
            addCriterion("rec_district <", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictLessThanOrEqualTo(String value) {
            addCriterion("rec_district <=", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictLike(String value) {
            addCriterion("rec_district like", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictNotLike(String value) {
            addCriterion("rec_district not like", value, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictIn(List<String> values) {
            addCriterion("rec_district in", values, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictNotIn(List<String> values) {
            addCriterion("rec_district not in", values, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictBetween(String value1, String value2) {
            addCriterion("rec_district between", value1, value2, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecDistrictNotBetween(String value1, String value2) {
            addCriterion("rec_district not between", value1, value2, "recDistrict");
            return (Criteria) this;
        }

        public Criteria andRecStreetIsNull() {
            addCriterion("rec_street is null");
            return (Criteria) this;
        }

        public Criteria andRecStreetIsNotNull() {
            addCriterion("rec_street is not null");
            return (Criteria) this;
        }

        public Criteria andRecStreetEqualTo(String value) {
            addCriterion("rec_street =", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetNotEqualTo(String value) {
            addCriterion("rec_street <>", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetGreaterThan(String value) {
            addCriterion("rec_street >", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetGreaterThanOrEqualTo(String value) {
            addCriterion("rec_street >=", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetLessThan(String value) {
            addCriterion("rec_street <", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetLessThanOrEqualTo(String value) {
            addCriterion("rec_street <=", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetLike(String value) {
            addCriterion("rec_street like", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetNotLike(String value) {
            addCriterion("rec_street not like", value, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetIn(List<String> values) {
            addCriterion("rec_street in", values, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetNotIn(List<String> values) {
            addCriterion("rec_street not in", values, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetBetween(String value1, String value2) {
            addCriterion("rec_street between", value1, value2, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecStreetNotBetween(String value1, String value2) {
            addCriterion("rec_street not between", value1, value2, "recStreet");
            return (Criteria) this;
        }

        public Criteria andRecDateIsNull() {
            addCriterion("rec_date is null");
            return (Criteria) this;
        }

        public Criteria andRecDateIsNotNull() {
            addCriterion("rec_date is not null");
            return (Criteria) this;
        }

        public Criteria andRecDateEqualTo(Date value) {
            addCriterionForJDBCDate("rec_date =", value, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateNotEqualTo(Date value) {
            addCriterionForJDBCDate("rec_date <>", value, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateGreaterThan(Date value) {
            addCriterionForJDBCDate("rec_date >", value, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("rec_date >=", value, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateLessThan(Date value) {
            addCriterionForJDBCDate("rec_date <", value, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("rec_date <=", value, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateIn(List<Date> values) {
            addCriterionForJDBCDate("rec_date in", values, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateNotIn(List<Date> values) {
            addCriterionForJDBCDate("rec_date not in", values, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("rec_date between", value1, value2, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecDateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("rec_date not between", value1, value2, "recDate");
            return (Criteria) this;
        }

        public Criteria andRecPhotoIsNull() {
            addCriterion("rec_photo is null");
            return (Criteria) this;
        }

        public Criteria andRecPhotoIsNotNull() {
            addCriterion("rec_photo is not null");
            return (Criteria) this;
        }

        public Criteria andRecPhotoEqualTo(String value) {
            addCriterion("rec_photo =", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoNotEqualTo(String value) {
            addCriterion("rec_photo <>", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoGreaterThan(String value) {
            addCriterion("rec_photo >", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("rec_photo >=", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoLessThan(String value) {
            addCriterion("rec_photo <", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoLessThanOrEqualTo(String value) {
            addCriterion("rec_photo <=", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoLike(String value) {
            addCriterion("rec_photo like", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoNotLike(String value) {
            addCriterion("rec_photo not like", value, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoIn(List<String> values) {
            addCriterion("rec_photo in", values, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoNotIn(List<String> values) {
            addCriterion("rec_photo not in", values, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoBetween(String value1, String value2) {
            addCriterion("rec_photo between", value1, value2, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andRecPhotoNotBetween(String value1, String value2) {
            addCriterion("rec_photo not between", value1, value2, "recPhoto");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("user_id is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("user_id is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Integer value) {
            addCriterion("user_id =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Integer value) {
            addCriterion("user_id <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Integer value) {
            addCriterion("user_id >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("user_id >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Integer value) {
            addCriterion("user_id <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Integer value) {
            addCriterion("user_id <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Integer> values) {
            addCriterion("user_id in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Integer> values) {
            addCriterion("user_id not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Integer value1, Integer value2) {
            addCriterion("user_id between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Integer value1, Integer value2) {
            addCriterion("user_id not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andStatusIsNull() {
            addCriterion("status is null");
            return (Criteria) this;
        }

        public Criteria andStatusIsNotNull() {
            addCriterion("status is not null");
            return (Criteria) this;
        }

        public Criteria andStatusEqualTo(Integer value) {
            addCriterion("status =", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotEqualTo(Integer value) {
            addCriterion("status <>", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThan(Integer value) {
            addCriterion("status >", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("status >=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThan(Integer value) {
            addCriterion("status <", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusLessThanOrEqualTo(Integer value) {
            addCriterion("status <=", value, "status");
            return (Criteria) this;
        }

        public Criteria andStatusIn(List<Integer> values) {
            addCriterion("status in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotIn(List<Integer> values) {
            addCriterion("status not in", values, "status");
            return (Criteria) this;
        }

        public Criteria andStatusBetween(Integer value1, Integer value2) {
            addCriterion("status between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("status not between", value1, value2, "status");
            return (Criteria) this;
        }

        public Criteria andOther1IsNull() {
            addCriterion("other1 is null");
            return (Criteria) this;
        }

        public Criteria andOther1IsNotNull() {
            addCriterion("other1 is not null");
            return (Criteria) this;
        }

        public Criteria andOther1EqualTo(String value) {
            addCriterion("other1 =", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotEqualTo(String value) {
            addCriterion("other1 <>", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThan(String value) {
            addCriterion("other1 >", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1GreaterThanOrEqualTo(String value) {
            addCriterion("other1 >=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThan(String value) {
            addCriterion("other1 <", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1LessThanOrEqualTo(String value) {
            addCriterion("other1 <=", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Like(String value) {
            addCriterion("other1 like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotLike(String value) {
            addCriterion("other1 not like", value, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1In(List<String> values) {
            addCriterion("other1 in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotIn(List<String> values) {
            addCriterion("other1 not in", values, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1Between(String value1, String value2) {
            addCriterion("other1 between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther1NotBetween(String value1, String value2) {
            addCriterion("other1 not between", value1, value2, "other1");
            return (Criteria) this;
        }

        public Criteria andOther2IsNull() {
            addCriterion("other2 is null");
            return (Criteria) this;
        }

        public Criteria andOther2IsNotNull() {
            addCriterion("other2 is not null");
            return (Criteria) this;
        }

        public Criteria andOther2EqualTo(String value) {
            addCriterion("other2 =", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotEqualTo(String value) {
            addCriterion("other2 <>", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThan(String value) {
            addCriterion("other2 >", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2GreaterThanOrEqualTo(String value) {
            addCriterion("other2 >=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThan(String value) {
            addCriterion("other2 <", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2LessThanOrEqualTo(String value) {
            addCriterion("other2 <=", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Like(String value) {
            addCriterion("other2 like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotLike(String value) {
            addCriterion("other2 not like", value, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2In(List<String> values) {
            addCriterion("other2 in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotIn(List<String> values) {
            addCriterion("other2 not in", values, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2Between(String value1, String value2) {
            addCriterion("other2 between", value1, value2, "other2");
            return (Criteria) this;
        }

        public Criteria andOther2NotBetween(String value1, String value2) {
            addCriterion("other2 not between", value1, value2, "other2");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}